package cn.kgc.springcloud.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;
import java.util.Date;

@Document(indexName = "faqs",type = "faqs")
public class Faqs implements Serializable {

    @Id
    private Integer fid;

    @Field
    private String title;

    @Field
    private Date createDate;

    @Field
    private String content;

    @Field
    private Integer classId;

    @Field
    private String cname;

    public Faqs() {
    }

    public Faqs(Integer fid, String title, Date createDate, String content, Integer classId, String cname) {
        this.fid = fid;
        this.title = title;
        this.createDate = createDate;
        this.content = content;
        this.classId = classId;
        this.cname = cname;
    }

    @Override
    public String toString() {
        return "FaqsVO{" +
                "fid=" + fid +
                ", title='" + title + '\'' +
                ", createDate=" + createDate +
                ", content='" + content + '\'' +
                ", classId=" + classId +
                ", cname='" + cname + '\'' +
                '}';
    }

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }
}

